import request from '@/request'

export function getCurrentUserInfo(token) {
  return request({
    url: '/users/currentUserInfo',
    headers: {'Authorization': token},
    method: 'get',
  })
}

export function update(user) {
  return request({
    url: '/users/update',
    method: 'put',
    data: user
  })
}

export function updatePassword(passVo) {
  return request({
    url: '/users/updatePass',
    method: 'put',
    data: passVo
  })
}
